<script setup>
import { ref } from 'vue'
const msg = ref('')
onActivated(() => {
  console.log("keepalive2 activated");
});

onDeactivated(() => {
  console.log("keepalive2 deactivated");
});
</script>

<template>
  <p>Current component: B</p>
  <span>Message is: {{ msg }}</span>
  <AInput v-model:value="msg"></AInput>
</template>
